package zoran.wang.entity;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * description：
 *
 * @author wangzhuo
 * @date 2022/3/19 16:33
 * @Email zoranwang@yeah.net
 */
@Component
//多例，每次从容器中获取person对象时，都是不一样的person对象
@Scope("prototype")
public class Person {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
